﻿@{
    Layout = null;
}
@model List<HotelMgr.Models.Room>
@foreach (var room in Model)
{
    
    <div class="roomBox fn-left @("state"+room.RoomStateID)">
        <div class="room-detail">
            <p><img alt="@room.RoomID" src="@Url.Content("~"+room.RoomUrl)"/></p>
            <p class="title">
                Room @room.RoomID</p>
            <p class="type">
                类型：@room.RoomType.TypeName</p>
            <p class="status">
                状态：@room.RoomState.Name</p>
            <p class="price">
                原价：@room.Price</p>
        </div>
    </div>
}
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.form.js")"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('#indexForm').ajaxForm(function (data) {
            $("#room-list").html(data);
        });
    });
</script>